<%@ page language="java" contentType="text/html; charset=utf-8"  pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <%@ include file="/common/client/header.jsp" %>
  <script src="${ctx}/statics/js/manager/manager.js"></script>
</head>
<link rel="stylesheet" href="jq/bootstrap-3.4.1-dist/css/bootstrap.css">
<body>
<%@ include file="/common/manager/searchBar.jsp" %>
<!--End Header End-->
<div class="i_bg bg_color">
  <!--Begin 用户中心 Begin -->
  <div class="m_content">
    <%@ include file="/common/manager/leftBar.jsp"%>
    <div class="m_right" id="content">
      <p></p>
      <div class="mem_tit">订单明细列表</div>
      <table border="0" class="order_tab" style="width:930px; text-align:center; margin-bottom:30px;" cellspacing="0" cellpadding="0">
        <tbody>
        <c:forEach var="orderNo" items="${base_orders.pageList}">
        <tr class="td_bg">
          <td>${orderNo.account}</td>
          <td><a href="${ctx}/manager/order/orderInfoList.jsp">${orderNo.order_no}</a></td>
          <td>${orderNo.user_address}</td>
          <td>${orderNo.amount}</td>
        </tr>
        <tr>
        </tr>
        <tr>
          <td colspan="4">
            <table border="0" class="order_tab" style="width:930px; text-align:center; margin-bottom:30px;" cellspacing="0" cellpadding="0">
              <tbody>
              <tr>
                <td width="20%">商品名称</td>
                <td width="20%">商品图片</td>
                <td width="25%">数量</td>
                <td width="25%">价格</td>
              </tr>
              <c:forEach var="order" items="${t_goodsPage}">
                <c:if test="${orderNo.order_no == order.order_no}">
                  <tr>
                    <td>${order.goods_name}</td>
                    <td>
                      <img src="${ctx}/files/${order.file_name}" height="100px" width="75px">
                    </td>
                    <td>${order.stock}</td>
                    <td>${order.price}</td>
                  </tr>
                </c:if>

              </c:forEach>
              </tbody>
            </table>
          </td>
        </tr>
        </c:forEach>
    </div>
    </tbody>
    </table>
    <div class="text-center">
      <a class = "btn btn-info" href = "/list?pageNo=1">首页</a>

      <c:choose>
        <c:when test="${base_orders.pageNo==1}">
          <a class = "btn btn-default" disabled href = "javascript:void(0)">上一页</a>
        </c:when>
        <c:otherwise>
          <a class = "btn btn-info" href = "/list?pageNo=${base_orders.pageNo-1}">上一页</a>
        </c:otherwise>
      </c:choose>

      <c:choose>
        <c:when test="${base_orders.pageNo == base_orders.totalPage}">
          <a class = "btn btn-default" disabled href = "javascript:void(0)">下一页</a>
        </c:when>
        <c:otherwise>
          <a class = "btn btn-info" href = "/list?pageNo=${base_orders.pageNo+1}">下一页</a>
        </c:otherwise>
      </c:choose>

      <a class = "btn btn-info" href = "/list?pageNo=${base_orders.totalPage}">末页</a>

    </div>
  </div>
</div>
<%@ include file="/common/client/footer.jsp" %>
</div>
</body>
</html>


